#pragma once
#include <string>
#include "Block.h"
#include "TripelManager.h"
#include "DiscManager.h"
#include "BufferManager.h"

using namespace std;

struct Tripel {};

class QueryResult {
private:

    blockId _currentBlockId;
    rowId _currentRowId;
    bool _isEmpty;
    Block* _currentBlock;
    sRow _currentRow;
    void calcNextTripel();

    byte* _subjectIdBytes;
    byte* _predicateIdBytes;
    byte* _objectIdBytes;
protected:
    string _message;
    QueryResult();
    QueryResult(sTripel);
public:
    QueryResult(const string&);
    ~QueryResult();
    sTripel getNextResult();
    bool isEmpty();
    string getMessage();

};

